<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>Healthcheck library for OpenResty</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>lua-resty-healthcheck</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Functions">Functions</a></li>
</ul>


<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/resty.healthcheck.html">resty.healthcheck</a></li>
  <li><strong>resty.healthcheck.utils</strong></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
</ul>

</div>

<div id="content">

<h1>Module <code>resty.healthcheck.utils</code></h1>
<p>Utilities used by the healthcheck library.</p>
<p> Code originally from https://github.com/Kong/lua-resty-dns-client</p>
    <h3>Info:</h3>
    <ul>
        <li><strong>Copyright</strong>: 2017 Kong Inc.</li>
        <li><strong>License</strong>: Apache 2.0</li>
        <li><strong>Author</strong>: Hisham Muhammad, Thijs Schreijer</li>
    </ul>


<h2><a href="#Functions">Functions</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#gctimer">gctimer (t, cb, self, ...)</a></td>
	<td class="summary">A garbage-collectible timer implementation.</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Functions"></a>Functions</h2>

    <dl class="function">
    <dt>
    <a name = "gctimer"></a>
    <strong>gctimer (t, cb, self, ...)</strong>
    </dt>
    <dd>
    A garbage-collectible timer implementation.
 Provides a timer that can be attached to an object, and GC'ed along
 with that object, as opposed to regular timers that keep running and
 prevent the object from being GC'ed.


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">t</span>
         time in ms
        </li>
        <li><span class="parameter">cb</span>
         callback for the timer. The signature is <code>function(premature, self, ...)</code>
        </li>
        <li><span class="parameter">self</span>
         the object the timer belongs to
        </li>
        <li><span class="parameter">...</span>
         any additional parameters to pass to the timer callback
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

        timer handle (same as <code>ngx.timer.at</code>)
    </ol>




</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2020-06-17 13:10:48 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
